//
//  Brand_Vertical_CCell.swift
//  Pods
//
//  Created by eme on 2017/3/27.
//
//

import UIKit
import UtilCore

class Brand_Vertical_CCell: UICollectionViewCell {
    
    static let interitemSpacing:CGFloat = 11
    static let lineSpacing:CGFloat = 10
    static let cellTop:CGFloat = 0
    static let cellBottom:CGFloat = 10
    static var cellSize:CGSize{
        get{
            let width = (screen_Width - Brand_Vertical_CCell.interitemSpacing)/2
            let height = width * 182/364
            return CGSize(width: width, height: height)
        }
    }
    static var cellEdgeInsets:UIEdgeInsets{
        get{
            return  UIEdgeInsets(top: Brand_Vertical_CCell.cellTop, left: 0, bottom: Brand_Vertical_CCell.cellBottom, right: 0)
        }
    }
    
    @IBOutlet weak var brinfourl_ImgV: UIImageView!
    var item :AnyObject?{
        didSet{
            if let item = self.item {
                if let item = item as? HpBrandModel  {
                    self.brinfourl_ImgV.setUrlImage(item.brlogourl,placeholderImage: "brand-placeholder")
                }
            }
        }
    }
    
}
